﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FCF RID: 4047
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueSeasonInfo : IMessage<RogueSeasonInfo>, IMessage, IEquatable<RogueSeasonInfo>, IDeepCloneable<RogueSeasonInfo>, IBufferMessage
	{
		// Token: 0x17003337 RID: 13111
		// (get) Token: 0x0600B517 RID: 46359 RVA: 0x001E8B45 File Offset: 0x001E6D45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueSeasonInfo> Parser
		{
			get
			{
				return RogueSeasonInfo._parser;
			}
		}

		// Token: 0x17003338 RID: 13112
		// (get) Token: 0x0600B518 RID: 46360 RVA: 0x001E8B4C File Offset: 0x001E6D4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueSeasonInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003339 RID: 13113
		// (get) Token: 0x0600B519 RID: 46361 RVA: 0x001E8B5E File Offset: 0x001E6D5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueSeasonInfo.Descriptor;
			}
		}

		// Token: 0x0600B51A RID: 46362 RVA: 0x001E8B65 File Offset: 0x001E6D65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSeasonInfo()
		{
		}

		// Token: 0x0600B51B RID: 46363 RVA: 0x001E8B6D File Offset: 0x001E6D6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSeasonInfo(RogueSeasonInfo other) : this()
		{
			this.endTime_ = other.endTime_;
			this.beginTime_ = other.beginTime_;
			this.season_ = other.season_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B51C RID: 46364 RVA: 0x001E8BAA File Offset: 0x001E6DAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSeasonInfo Clone()
		{
			return new RogueSeasonInfo(this);
		}

		// Token: 0x1700333A RID: 13114
		// (get) Token: 0x0600B51D RID: 46365 RVA: 0x001E8BB2 File Offset: 0x001E6DB2
		// (set) Token: 0x0600B51E RID: 46366 RVA: 0x001E8BBA File Offset: 0x001E6DBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long EndTime
		{
			get
			{
				return this.endTime_;
			}
			set
			{
				this.endTime_ = value;
			}
		}

		// Token: 0x1700333B RID: 13115
		// (get) Token: 0x0600B51F RID: 46367 RVA: 0x001E8BC3 File Offset: 0x001E6DC3
		// (set) Token: 0x0600B520 RID: 46368 RVA: 0x001E8BCB File Offset: 0x001E6DCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long BeginTime
		{
			get
			{
				return this.beginTime_;
			}
			set
			{
				this.beginTime_ = value;
			}
		}

		// Token: 0x1700333C RID: 13116
		// (get) Token: 0x0600B521 RID: 46369 RVA: 0x001E8BD4 File Offset: 0x001E6DD4
		// (set) Token: 0x0600B522 RID: 46370 RVA: 0x001E8BDC File Offset: 0x001E6DDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Season
		{
			get
			{
				return this.season_;
			}
			set
			{
				this.season_ = value;
			}
		}

		// Token: 0x0600B523 RID: 46371 RVA: 0x001E8BE5 File Offset: 0x001E6DE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueSeasonInfo);
		}

		// Token: 0x0600B524 RID: 46372 RVA: 0x001E8BF4 File Offset: 0x001E6DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueSeasonInfo other)
		{
			return other != null && (other == this || (this.EndTime == other.EndTime && this.BeginTime == other.BeginTime && this.Season == other.Season && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B525 RID: 46373 RVA: 0x001E8C50 File Offset: 0x001E6E50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EndTime != 0L)
			{
				num ^= this.EndTime.GetHashCode();
			}
			if (this.BeginTime != 0L)
			{
				num ^= this.BeginTime.GetHashCode();
			}
			if (this.Season != 0U)
			{
				num ^= this.Season.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B526 RID: 46374 RVA: 0x001E8CC1 File Offset: 0x001E6EC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B527 RID: 46375 RVA: 0x001E8CC9 File Offset: 0x001E6EC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B528 RID: 46376 RVA: 0x001E8CD4 File Offset: 0x001E6ED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EndTime != 0L)
			{
				output.WriteRawTag(24);
				output.WriteInt64(this.EndTime);
			}
			if (this.Season != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Season);
			}
			if (this.BeginTime != 0L)
			{
				output.WriteRawTag(104);
				output.WriteInt64(this.BeginTime);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B529 RID: 46377 RVA: 0x001E8D4C File Offset: 0x001E6F4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.EndTime);
			}
			if (this.BeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.BeginTime);
			}
			if (this.Season != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Season);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B52A RID: 46378 RVA: 0x001E8DBC File Offset: 0x001E6FBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueSeasonInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EndTime != 0L)
			{
				this.EndTime = other.EndTime;
			}
			if (other.BeginTime != 0L)
			{
				this.BeginTime = other.BeginTime;
			}
			if (other.Season != 0U)
			{
				this.Season = other.Season;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B52B RID: 46379 RVA: 0x001E8E20 File Offset: 0x001E7020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B52C RID: 46380 RVA: 0x001E8E2C File Offset: 0x001E702C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 48U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.BeginTime = input.ReadInt64();
						}
					}
					else
					{
						this.Season = input.ReadUInt32();
					}
				}
				else
				{
					this.EndTime = input.ReadInt64();
				}
			}
		}

		// Token: 0x04004930 RID: 18736
		private static readonly MessageParser<RogueSeasonInfo> _parser = new MessageParser<RogueSeasonInfo>(() => new RogueSeasonInfo());

		// Token: 0x04004931 RID: 18737
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004932 RID: 18738
		public const int EndTimeFieldNumber = 3;

		// Token: 0x04004933 RID: 18739
		private long endTime_;

		// Token: 0x04004934 RID: 18740
		public const int BeginTimeFieldNumber = 13;

		// Token: 0x04004935 RID: 18741
		private long beginTime_;

		// Token: 0x04004936 RID: 18742
		public const int SeasonFieldNumber = 6;

		// Token: 0x04004937 RID: 18743
		private uint season_;
	}
}
